package com.ruoyi.party.system.domain;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

public class ActivitySign extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private Long id;

	@NotBlank(message = "活动编号不能为空")
	@Size(min = 0, max = 15, message = "活动编号长度不能超过15个字符")
	private String actId;

	@NotBlank(message = "党员编号不能为空")
	@Size(min = 0, max = 10, message = "党员编号长度不能超过10个字符")
	private String memberId;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date signTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getActId() {
		return actId;
	}

	public void setActId(String actId) {
		this.actId = actId;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public Date getSignTime() {
		return signTime;
	}

	public void setSignTime(Date signTime) {
		this.signTime = signTime;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("memberId", getMemberId()).append("actId", getActId()).append("signTime", getSignTime())
				.toString();
	}

}
